From 2c197108ac3719d2c1992dcffc1644a7c02145c2 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Thu, 28 Jun 2012 14:13:38 +0200 Subject: [PATCH] * calendar/cal-dst.el (calendar-current-time-zone): Return calendar-current-time-zone-cache if non-nil. --- lisp/ChangeLog | 5 +++++ lisp/calendar/cal-dst.el | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a74f9605d51..20a51bd2557 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2012-06-28 Andreas Schwab + + * calendar/cal-dst.el (calendar-current-time-zone): Return + calendar-current-time-zone-cache if non-nil. + 2012-06-25 Masatake YAMATO * progmodes/which-func.el (which-func-format): diff --git a/lisp/calendar/cal-dst.el b/lisp/calendar/cal-dst.el index e3996cae3de..4af3ea53ab3 100644 --- a/lisp/calendar/cal-dst.el +++ b/lisp/calendar/cal-dst.el @@ -347,8 +347,8 @@ DST-ZONE are equal, and all the DST-* integer variables are 0. Some operating systems cannot provide all this information to Emacs; in this case, `calendar-current-time-zone' returns a list containing nil for the data it can't find." - (unless calendar-current-time-zone-cache - (setq calendar-current-time-zone-cache (calendar-dst-find-data)))) + (or calendar-current-time-zone-cache + (setq calendar-current-time-zone-cache (calendar-dst-find-data)))) ;; Following options should be set based on conditions when the code -- 2.30.2